package top.lywivan.mm.service.imp;

import top.lywivan.mm.dao.IndustryDao;
import top.lywivan.mm.pojo.Industry;
import top.lywivan.mm.service.IndustryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class IndustryServiceImpl implements IndustryService {
    @Autowired
    private IndustryDao industryDao;

    @Override
    @Transactional(readOnly = true)
    public List<Industry> findListAllIndustry() {
        return industryDao.findListAllIndustry();
    }
}
